Skip to content

Sheffield | 26-Jan-ITP | Daniel Aderibigbe | Sprint 2 | coursework/sprint-2#1049

Open
Dan2Clouted wants to merge 9 commits intoCodeYourFuture:mainfrom
Dan2Clouted:coursework/sprint-2
Open

Sheffield | 26-Jan-ITP | Daniel Aderibigbe | Sprint 2 | coursework/sprint-2#1049
Dan2Clouted wants to merge 9 commits intoCodeYourFuture:mainfrom
Dan2Clouted:coursework/sprint-2

Conversation

@Dan2Clouted
Copy link

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Completed the following exercises:

  • Key errors
  • Mandatory Debug
  • Mandatory implement
  • Mandatory interpret

@Dan2Clouted Dan2Clouted added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 24, 2026
@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Feb 26, 2026
@Dan2Clouted
Copy link
Author

Hi Cj, Thanks for the feedback.
I have updated calculateBMI to return a number (since toFixed() returns a string) by wrapping it with Number(...).
For format-time.js, i realised i only added the explanation, i have now added the actual formatAs12HourClock function definition into the file along with the tests.
Thanks in advance.

@Dan2Clouted Dan2Clouted added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 27, 2026
// return the BMI of someone based off their weight and height
return (weight / (height * height)).toFixed(1);

return Number(weight / (height * height)).toFixed(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is still returning a string.

@cjyuan cjyuan removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 27, 2026
@Dan2Clouted Dan2Clouted added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 27, 2026
@Dan2Clouted
Copy link
Author

The issue should have been fixed now.

@cjyuan
Copy link
Contributor

cjyuan commented Feb 27, 2026

Changes look good. Well done!

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants